package com.position.reptile;

import java.io.Serializable;

/**
 * Description: 封装httpClient响应结果
 * 
 * @author Itcast 
 */

public class HttpClientResp implements Serializable  {
	private static final long serialVersionUID = 2168152194164783950L;
     //响应状态码
	private int code;
	//响应数据
	private String content;

     //定义无参和有参的构造方法
	public HttpClientResp() {
	}
	public HttpClientResp(int code) {
		this.code = code;
	}
	public HttpClientResp(String content) {
		this.content = content;
	}
	public HttpClientResp(int code, String content) {
		this.code = code;
		this.content = content;
	}

//定义属性的get/set方法
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

//重写toString方法
	@Override
	public String toString() {
		return "[code=" + code + ", content=" + content + "]";
	}
}